﻿using System;
using System.ComponentModel;


namespace WpfDataTemplate
{
    public class Custom
    {
        public string Name { get; set; }

        public int Age { get; set; }

        public Custom(string _name, int _age)
        {
            Name = _name;
            Age = _age;
        }
    }

    public class Customs : System.Collections.ObjectModel.ObservableCollection<Custom>
    {
        public Customs()
        {
            Add(new Custom("Li", 21));
            Add(new Custom("Lsi", 31));
            Add(new Custom("wLi", 6));
            Add(new Custom("Lfi", 91));
        }
    }
}
